package multimedia;

import java.util.ArrayList;
import java.util.Collections;

import javax.swing.JFrame;

public class MultimediaListApplication {

	public static void main(String[] args){
		
		ArrayList<String> sample=new ArrayList<String>();
		Collections.addAll(sample, "Music00", "Music01", "Music02", "Music03", "Music04", "Music05");
		
		
		
		MultimediaList list=new MultimediaList(sample);
		MultimediaListPanel panel=new MultimediaListPanel(list);
		list.setPanel(panel);
		MultimediaListController controller=new MultimediaListController(list);
		
		JFrame frame=new JFrame();
		frame.getContentPane().add(panel);
		frame.addKeyListener(controller);
		panel.addKeyListener(controller);
		frame.setTitle("Multimedia Test");
		frame.setSize(600,600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		
		
	}
	
	
	
	
	
	
	
}
